package com.etc.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.etc.entity.Travels;

@Repository
public interface TravelsMapper {
	int deleteByPrimaryKey(Integer traid);

	int insert(Travels record);

	int insertSelective(Travels record);

	Travels selectByPrimaryKey(Integer traid);

	int updateByPrimaryKeySelective(Travels record);

	int updateByPrimaryKey(Travels record);

	// 查询所有的游记
	List<Travels> selectAll();
	
	// 根据用户ID查询所有的游记
	List<Travels> selectByUserid(int userid);
}